package com.example.lp.lpuicore.canvas.canvas;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

/**
 * Canvas的TransForm应用
 * */
public class TransFormView extends View {
    private Paint mPaint;
    public TransFormView(Context context) {
        this(context,null);
    }

    public TransFormView(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs,0);
    }

    public TransFormView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
        invalidate();
    }


    private void init() {
        mPaint=new Paint();
        mPaint.setStyle(Paint.Style.STROKE);
        mPaint.setStrokeWidth(1f);

    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
    }
}
